package com.auth.manage.base.responce;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Collection;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class MultipleResponce<T> extends BaseResponce {
    private Collection<T> data;

    public static <E> MultipleResponce<E> of(Collection<E> data){
        MultipleResponce multipleResponce = new MultipleResponce();
        multipleResponce.setData(data);
        multipleResponce.setSuccess(true);
        return multipleResponce;
    }

}
